package test.zookeeper.test;  

import java.io.IOException;

import org.apache.zookeeper.KeeperException;

import test.zookeeper.ZkServer;
import test.zookeeper.ZkServerImpl;

/**  
 * @类名 ZkTest3.java  
 * @描述: 
 *     TODO
 * @作者 梅光弦  
 * @创建时间 2012-12-4 下午05:04:22  
 * @版本 v1.0  
 */
public class ZkTest3 {

	private static final String hosts="172.16.5.224:2181,172.16.5.224:2182,172.16.5.224:2183";
	
	public static void main(String args[]){
        ZkServer zkServer = new ZkServerImpl();			
		try{
			zkServer.init(hosts);
			
			zkServer.getData("/App1");
			
			Thread.sleep(600000);			
	    } catch (IOException e) {
		    e.printStackTrace();
	    } catch (KeeperException e) {
		    e.printStackTrace();
	    }	catch (InterruptedException e) {
		    e.printStackTrace();
	    }
	}
	
}
 